package com.kmxd.ams.client.event.oa;

import com.kmxd.ams.client.event.AmsEvent;
import com.kmxd.ams.core.common.bo.LoginUser;
import com.kmxd.ams.core.common.enums.FlowAuditEnum;
import com.kmxd.ams.core.common.enums.FlowEnum;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * 利用审批完成事件
 *
 * @author nickbi
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@ToString(callSuper = true)
public class OaFinishEvent extends AmsEvent {

  /** ID */
  private final Long id;

  /** 流程类型 */
  private final FlowEnum type;

  /** 处理结果 */
  private final Boolean result;
  /** 处理类型 */
  private final FlowAuditEnum audit;

  /** 获取当前的登录用户传递 */
  private final LoginUser loginUser;

  /** 备注信息 */
  private final String remarks;

  public OaFinishEvent(
      Long id,
      FlowEnum type,
      Boolean result,
      FlowAuditEnum audit,
      LoginUser loginUser,
      String remarks) {
    this.id = id;
    this.type = type;
    this.result = result;
    this.audit = audit;
    this.loginUser = loginUser;
    this.remarks = remarks;
  }
}
